package cn.bsuc.crm.service.impl;

import cn.bsuc.crm.entity.Customer;
import cn.bsuc.crm.entity.CustomerOrder;
import cn.bsuc.crm.mapper.CustomerOrderMapper;
import cn.bsuc.crm.service.CustomerOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhuoyuan
 * @since 2022-10-03
 */
@Service
public class CustomerOrderServiceImp extends ServiceImpl<CustomerOrderMapper, CustomerOrder> implements CustomerOrderService {
    @Autowired
    private CustomerOrderMapper customerOrderMapper;
    @Override
    public Page<CustomerOrder> cusGetPage(Customer customer, int pageNo, int pageSize) {
//        Page<Object> cusPage = PageHelper.startPage(pageNo, pageSize);
//        List<CustomerOrder> list = customerOrderMapper.selectPage(cusPage,null);
//        PageInfo<Customer> page = new PageInfo<>(list);
//        return page;

        Page<CustomerOrder> customerPage = new Page<>(pageNo,pageSize);
//        Page<CustomerOrder> selectPage = customerOrderMapper.selectPage(cus);
       return null;
    }
}
